/*
 * asm_rutines.h
 *
 * Created: 22.7.2013 16:21:55
 *  Author: Ferda
 */ 


#ifndef ASM_RUTINES_H_
#define ASM_RUTINES_H_

#include "avr/io.h"
#include <avr/interrupt.h>


#define WDP_16MS	0
#define WDP_32MS	(1 << WDP0)
#define WDP_64MS	(1 << WDP1)
#define WDP_128MS	(1 << WDP0) | (1 << WDP1)
#define WDP_250MS	(1 << WDP2)
#define WDP_500MS	(1 << WDP2) | (1 << WDP0)
#define WDP_1S		(1 << WDP2) | (1 << WDP1)
#define WDP_2S		(1 << WDP2) | (1 << WDP1) | (1 << WDP0)
#define WDP_4S		(1 << WDP3)
#define WDP_8S		(1 << WDP3) | (1 << WDP0)

#ifdef __cplusplus
	extern "C" {
#endif
//==============================
void EnableWDT(uint8_t period);
void DisableWDT();

//===============================
#ifdef __cplusplus
	};
#endif

//uint8_t strlen(uint8_t *ptr);



#endif /* ASM_RUTINES_H_ */